//
//  ZilneListDataModel.m
//  YZZX
//
//  Created by Easaa on 15/5/11.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

#import "ZilneListDataModel.h"

@implementation ZilneListDataModel


-(id)initWithDataDic:(NSDictionary *)dic
{
    self=[super init];
    if (self)
    {

        self.Description        =[dic objectForKey:@"Description"];
        self.IssueNo            =[dic objectForKey:@"IssueNo"];
        self.Image              =[dic objectForKey:@"Image"];
        self.Cover              =[dic objectForKey:@"Cover"];
        
        
        //时间转换
        NSDateFormatter *dateformatter = [[NSDateFormatter alloc] init];
        [dateformatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
        NSDate *date = [dateformatter dateFromString:[dic objectForKey:@"ReleaseDate"]];
        [dateformatter setDateFormat:@"yyyy-MM-dd"];
        NSString *strtime = [dateformatter stringFromDate:date];
    
        self.ReleaseDate        =strtime;
        self.id_massge          =[[dic objectForKey:@"id"] stringValue];
        self.Name               =[dic objectForKey:@"Name"];

    }
    return self;
    
    
}


@end
